#ifndef TRIENODE_H
#define TRIENODE_H

#include <vector>
//进行一个前缀树节点的声明（
class TrieNode
{
private:
public:
    bool isKey;
    int val;
    std::vector<TrieNode *> children;

    TrieNode() : isKey(false), children(26, nullptr), val(0) {}
    ~TrieNode()
    {
        for (TrieNode *child : children)
        {
            if(child)
                delete child;
        }
    }
};

#endif